<template>
	<view>
		<uni-table border stripe emptyText="暂无更多数据">
			<uni-tr>
				<uni-th width="120">公司代号</uni-th>
				<uni-th width="200">公司名称</uni-th>
			</uni-tr>
			<uni-tr v-for="ci in companyInfo" v-bind:key="ci.id">
				<uni-td>{{ci.companyid}}</uni-td>
				<uni-td>{{ci.companyname}}</uni-td>
			</uni-tr>
		</uni-table>
	</view>
</template>

<script>
export default {
		data() {
			return {
				companyInfo:[]
			}
		},
		onLoad() {

		},
		
		methods: {
			//获取公司信息
			loadCompanyInfo(){
				uni.request({
					url:"/api/20002/info/companyinfo/list",
					success: (res) => {
					    this.companyInfo = res.data.data;
					},
				});
			}
		},
		
		created() {
			this.loadCompanyInfo();//获取公司信息
		}
	}
</script>

<style>
	
</style>